from pydantic import BaseModel, Field


class NationDto(BaseModel):
    id: int = Field(default=0, title="id", description="id")
    name: str = Field(default=None, title="名称", description="名称")
    location: str = Field(default=None, title="位置", description="位置")

    class Config:
        from_attributes = True
        orm_mode = True
